package test.questions;
public class StrReplace {
	
	public void get1(String x){
		x=x.replace("j", "l");
	}
	
	public void get2(String x){
		x=x.replace("j", "l");
	}
	
	public void get3(StringBuffer x){
		x=x.append("c");
	}
	
	public static void main(String args[]) {
		String a = "java";
		String b = new String ("java");
		StringBuffer sb = new StringBuffer("java");
		StrReplace aaa = new StrReplace();
		aaa.get1(a);
		aaa.get2(b);
		aaa.get3(sb);
		System.out.println(a+b+sb.toString());
	}
}
